#include "Iterator.hpp"

template <typename T>
Iterator<T>::Iterator(DysList<T> *list)
{
    this->_size = list->size();
    this->_index = 0;
    this->_list = list;
}

template <typename T>
bool Iterator<T>::hasNext()
{
    return _index < _size;
}

template <typename T>
T Iterator<T>::next()
{
    return _list->get(_index++);
}
